//
//  HEAssesCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/10/13.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEAssesCell.h"

@interface HEAssesCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UILabel *titleLb;

@property (weak, nonatomic) IBOutlet UIButton *testBtn;

@end

@implementation HEAssesCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    _testBtn.layer.masksToBounds = YES;
    _testBtn.layer.cornerRadius = 14.5;
    
    _titleLb.font = DYFont(17);
    _testBtn.titleLabel.font = DYFont(14);
}
 
- (void)setModel:(HEAssesListModel *)model
{
    _model = model;
    _titleLb.text = model.check_name;
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:model.icon]];
}
- (IBAction)startCheckClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(toCheckVC:)]) {
        [_delegate toCheckVC: _model];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
